home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / children / states.exe / S_INSTAL.BAT next >
DOS Batch File  |  1990-01-06  |  6KB  |  146 lines

  1. echo off
  2. rem
  3. rem  S_INSTAL.BAT for The States
  4. rem
  5. cls
  6. if x%1==x goto di-rections
  7. if x%2==x goto di-rections
  8. if not exist %1STATE_B.EXE goto error
  9. if not exist %1STATE_A.EXE goto error
  10. if not exist %1S_README.1ST goto error
  11. IF %2==a: goto small-disk
  12. if %2==A: goto small-disk
  13. if %2==b: goto small-disk
  14. if %2==B: goto small-disk
  15. goto big-disk
  16. rem Display Install help if drive data are wrong
  17. :di-rections
  18. echo   ╒════════════════════════╗       ╔════════════════════════════════════╕
  19. echo   │ Installation Procedure ║       ║ Syntax: S_INSTAL drive1  drive2    │
  20. echo   ├────────────────────────╨───────╨────────────────────────────────────┤
  21. echo   │ The Install procedure must be from one drive to another.            │
  22. echo   │ The distribution disk must be placed in drive1.  The Install        │
  23. echo   │ program will expand the files to drive2.                            │
  24. echo   ╞═════════════════════════════════════════════════════════════════════╡
  25. echo   │ If you use a Dual Floppy 360k system you will need to prepare two   │
  26. echo   │ formatted diskettes.  Label one of the disks STATE A and the 2nd    │
  27. echo   │ STATE  B.  When ready place the distribution disk in drive A:       │
  28. echo   │ type ....  S_INSTAL A: B:  of from B:  S_INSTAL B: A:               │
  29. ECHO   ╞═════════════════════════════════════════════════════════════════════╡
  30. echo   │ For a Hard Disk or a 720k+ system you will require at least 700K.   │
  31. echo   │ A \STATE subdirectory will be created on a HD.  When ready place    │
  32. echo   │ the distribution disk in drive A: (or B:) and type "from" - "to":   │
  33. echo   │    S_INSTAL A: C: (program material from A: to hard disk C:)  or    │
  34. echo   │    S_INSTAL B: C: (program material from B: to hard disk C:)  or    │
  35. echo   │    S_INSTAL B: A: (program material from B: to 720K+ disk A:).      │
  36. echo   ╞═════════════════════════════════════════════════════════════════════╡
  37. echo   │ NOTE:  The INSTALL batch file will supply supplemental instructions.│
  38. echo   ╘═════════════════════════════════════════════════════════════════════╛
  39. pause
  40. cls
  41. goto exit-bat
  42. rem *** routine for hard disk installation procedure ***
  43. :big-disk
  44. cls
  45. echo   ╒══════════════════════════════════════════════════════════╕
  46. echo   │ You have chosen to install the STATE files               │
  47. echo   │ from drive "%1" to drive "%2" fixed disk.                │
  48. echo   ├──────────────────────────────────────────────────────────┤
  49. echo   │ Remember, the Destination drive %2 must have 700K free.  │
  50. echo   ├──────────────────────────────────────────────────────────┤
  51. echo   │ If you wish to change your mind press "CTRL BREAK" now.  │
  52. echo   ├──────────────────────────────────────────────────────────┤
  53. echo   │ Otherwise ....                                           │
  54. echo   ╘══════════════════════════════════════════════════════════╛
  55. echo:
  56. pause
  57. %2
  58. cls
  59. echo      ┌──────────────────────────────────────┐
  60. echo      │   Creating \STATE directory on "%2". │
  61. echo      └──────────────────────────────────────┘
  62. cd \
  63. md STATE
  64. cd \STATE
  65. echo      ┌────────────────────────────────────────┐
  66. echo      │   Extracting files .................   │
  67. echo      │   This may take a few moments....      │
  68. echo      └────────────────────────────────────────┘
  69. COPY %1S_README.1st %2
  70. %1STATE_A
  71. %1STATE_B
  72. dir /w %2
  73. pause
  74. goto done
  75. rem
  76. rem *** Installation procedure for 360K - 720k+ diskette ***
  77. rem
  78. :small-disk
  79.  
  80. cls
  81. echo  ╔══════════╦═════════════════════════════════════════════════════════╗
  82. echo  ║  FLOPPY  ║ You have chosen to install the files from Drive %1      ║
  83. echo  ║  INSTALL ║ to a 360K or 720k+ disk on Drive %2.                    ║
  84. echo  ╠══════════╩═════════════════════════════════════════════════════════╣
  85. echo  ║  Remember - you should have diskettes formatted and prepared       ║
  86. echo  ║  labeled STATE-A (& STATE-B).  Press CTRL-BREAK if not ready, else ║
  87. echo  ╠════════════════════════════════════════════════════════════════════╣
  88. echo  ║  Put distribution disk in drive %1 & Disk STATE-A in Drive %2 &  ..║
  89. echo  ╚════════════════════════════════════════════════════════════════════╝
  90. echo:
  91. pause
  92. cls
  93. echo   ┌────────────────────────────────────────┐
  94. echo   │ Extracting QUIZSTATE & TEST files .... │
  95. echo   │ This may take a few moments .........  │
  96. echo   └────────────────────────────────────────┘
  97. %2
  98. COPY %1S_README.1ST %2
  99. %1STATE_A
  100. dir /w %2
  101. pause
  102. cls
  103. echo  ╔═══════════════════════════════════════════════════════════════╗
  104. echo  ║  If a 360k disk:  Remove STATE-A disk from drive %2           ║
  105. echo  ║                   Replace it with the STATE-B disk,  or  ...  ║
  106. echo  ║===============================================================║
  107. echo  ║  If a 720k+ disk: No need to remove the disk. Just .........  ║
  108. echo  ╚═══════════════════════════════════════════════════════════════╝
  109. echo:
  110. pause
  111. echo   ┌────────────────────────────────────────┐
  112. echo   │ Extracting HISTORY files.              │
  113. echo   │ This may take a few moments .........  │
  114. echo   └────────────────────────────────────────┘
  115. %1STATE_B
  116. dir /w %2
  117. pause
  118. :done
  119. cls
  120. echo      ┌─────────────────────────────────────────────────────────┐
  121. echo      │ BRAVO ... The installation procedure has been complete! │
  122. echo      └─────────────────────────────────────────────────────────┘
  123. echo:
  124. echo:
  125. echo   ╔═════════════════════════════╤═════════════════════════════════╗
  126. echo   ║ The document may be printed.│          : PRINT USTATE.DOC     ║
  127. echo   ║ or listed to the screen.....│by typing : TYPE  USTATE.DOC     ║
  128. echo   ░---------------------------------------------------------------░
  129. echo   ║ The programs may be run.....│by typing : QUIZSTATE            ║
  130. ECHO   ║ OR .........................│          : READSTAT             ║
  131. echo   ╚═════════════════════════════╧═════════════════════════════════╝
  132. GOTO EXIT-BAT
  133. :ERROR
  134. CLS
  135. echo 
  136. echo 
  137. echo d
  138. echo:
  139. echo       ************************************************************
  140. ECHO       * We have not found the correct files on drive %1. Please  *
  141. echo       * place the distribution disk in drive %1 and start over.  *
  142. echo       ************************************************************
  143. echo 
  144. pause
  145. :exit-bat
  146.